package org.apache.struts.admin.action;

import java.util.ArrayList;

import com.opensymphony.xwork2.ActionSupport;

public class GetWardsAction extends ActionSupport{

	private ArrayList<String> wards;
	private ArrayList<Integer> noOfBeds;
	
	public ArrayList<Integer> getNoOfBeds() {
		return noOfBeds;
	}

	public ArrayList<String> getWards() {
		return wards;
	}

	public String execute() throws Exception {
		wards=new ArrayList<String>();
		wards.add("4");
		wards.add("5");
		wards.add("6");
		wards.add("7");
		wards.add("8");
		noOfBeds=new ArrayList<Integer>();
		noOfBeds.add(10);
		noOfBeds.add(8);
		noOfBeds.add(12);
		noOfBeds.add(16);
		noOfBeds.add(15);
		return SUCCESS;
	}
}
